<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>轮播图</title>
  <link rel="stylesheet" href="./iconfont/iconfont.css">
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    ul,
    ol {
      list-style: none;
    }

    .banner {
      /* display: flex; */
      position: relative;
      overflow: hidden;
      width: 564px;
      height: 315px;
      margin: 50px auto;
      /* background-color: pink; */

    }

    .banner img {
      width: 564px;
      vertical-align: middle;
      border-radius: 10px;
    }

    .banner ul {
      display: flex;
    }

    .banner .prev,
    .banner .next {
      display: none;
      position: absolute;
      width: 20px;
      height: 30px;
      line-height: 30px;
      top: 50%;
      transform: translateY(-50%);
      background-color: rgba(0, 0, 0, 0.3);
      color: #fff;
      text-decoration: none;
    }

    .banner .prev {
      left: 0;
      border-radius: 0 15px 15px 0;
    }

    .banner .next {
      right: 0;
      border-radius: 15px 0 0 15px;
      text-align: center;
    }

    .banner:hover .prev,
    .banner:hover .next {
      display: block;
    }

    .banner ol {
      display: flex;
      bottom: 20px;
      position: absolute;
      height: 13px;
      border-radius: 10px;
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(255, 255, 255, .3);
    }

    .banner ol li {
      height: 8px;
      width: 8px;
      background-color: #fff;
      border-radius: 4px;
      margin: 3px;
    }

    .banner .curent {
      background-color: orange;
    }
  </style>
</head>

<body>
  <div class="banner">
    <ul>
      <li><a href="#"> <img src="./image/banner1.jpg" alt=""></a></li>
      <li><a href="#"> <img src="./image/banner2.jpg" alt=""></a></li>
      <li><a href="#"> <img src="./image/banner3.jpg" alt=""></a></li>
    </ul>
    <a href="#" class="prev">
      <i class="iconfont icon-zuoce"></i>
    </a>
    <a href="#" class="next">
      <i class="iconfont icon-youce"></i>
    </a>
    <ol>
      <li></li>
      <li class="curent"></li>
      <li></li>
    </ol>
  </div>
</body>

</html>